package com.duck.duckchatbackend.utils;

/**
 * @BelongsProject: DuckChatBackend
 * @BelongsPackage: com.duck.duckchatbackend.utils
 * @Author: liyajun
 * @CreateTime: 2024-12-05  21:18
 * @Description: TODO
 * @Version: 1.0
 */
public class test1 {


    // exceptions/SameHandler.java
    class EBase1 extends Exception {}
    class Except1 extends EBase1 {}
    class EBase2 extends Exception {}
    class Except2 extends EBase2 {}
    class EBase3 extends Exception {}
    class Except3 extends EBase3 {}
    class EBase4 extends Exception {}
    class Except4 extends EBase4 {}

    public class SameHandler {
        void x() throws Except1, Except2, Except3, Except4 {}
        void process() {}
        void f() {
            try {
                x();
            } catch(Except1 e) {
                process();
            } catch(Except2 e) {
                process();
            } catch(Except3 e) {
                process();
            } catch(Except4 e) {
                process();
            }
        }
    }

}
//
//null: null
//        null: null
//        null: null
//        d: A value for d
//        number: 47
//        number2: 48
//        df: d: A new value for d
//        number: 47
//        number2: 48
//        number3: 11
//        df.getField("d") : A new value for d
//        DynamicFieldsException
//        at
//        DynamicFields.setField(DynamicFields.java:65)
//        at DynamicFields.main(DynamicFields.java:97)
//        Caused by: java.lang.NullPointerException
//        at
//        DynamicFields.setField(DynamicFields.java:67)
//        ... 1 more


